From: Ray Strode Date: Fri, 22 Mar 2013 19:03:04 +0000 (-0400) Subject: background: When updating actor content, evict old content from cache X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4397 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b9da6d9ef628bdfea3dc87f5e3f46ae59e880c45;p=gnome-shell.git background: When updating actor content, evict old content from cache Normally backgrounds get evicted from the cache when their actor is destroyed. If the actor changes content without destroying itself, though, we should evict the old content from the cache, too. https://bugzilla.gnome.org/show_bug.cgi?id=696157 --- diff --git a/js/ui/background.js b/js/ui/background.js index aa238e741..e95cbc0a1 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -372,6 +372,7 @@ const Background = new Lang.Class({ content.brightness = this._brightness; content.vignette_sharpness = this._vignetteSharpness; + this._cache.removeImageContent(content); this._images[index].content = content; this._watchCacheFile(filename); },